//
//  RPNoDataView.h
//  ShowYork
//
//  Created by hxh on 2021/3/11.
//  Copyright © 2021 hxh. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@protocol RPNoDataViewDelelgate <NSObject>

@optional
- (void)noDataButtonMethod;
@end


@interface RPNoDataView : UIView

- (instancetype)initWithNoDataTitle:(NSString * __nullable)title image:(NSString * __nullable)image area:(CGFloat)area;

- (void)showInView:(UIView *)mainView;

- (void)showInView:(UIView *)mainView location:(CGPoint)point;

/// 可视区域的高度
@property (nonatomic,assign)CGFloat displayArea;
/// 字体文字大小
@property (nonatomic,strong)UIFont *font;
/// 字体颜色
@property (nonatomic,strong)UIColor *textColor;
/// 字体文字
@property (nonatomic,copy)NSString *text;
/// 图片本地路径
@property (nonatomic,copy)NSString *image;
/// 图片网络路径
@property (nonatomic,copy)NSString *url;
/// 是否显示按钮
@property (nonatomic,assign)BOOL showBtn;
/// 按钮的字体颜色
@property (nonatomic,strong)UIColor *buttonTitleColor;
/// 按钮的字体大小
@property (nonatomic,strong)UIFont *buttonTitleFont;
/// 按钮字体
@property (nonatomic,copy)NSString *buttonTitle;
/// 按钮的背景layer层
@property (nonatomic,copy)NSArray *layerColors;

@property (nonatomic,weak)id<RPNoDataViewDelelgate>delegate;

@end

NS_ASSUME_NONNULL_END
